package com.ssh.dao;

import java.sql.SQLException;
import java.util.List;

import org.hibernate.HibernateException;

import com.ssh.entity.Emp;

public interface Empdao {
	
	public void save(Emp emp) throws SQLException;
	
	public void update(Emp emp) throws SQLException;
	
	public void delete(int id) throws SQLException;
	
	public List<Emp> list() throws SQLException;
	
	public Emp findById(int id) throws SQLException; 
	
	public Emp findByUsername(String username) throws SQLException;
}
